package com.springboot.hikersystemapp.repository;

import com.springboot.hikersystemapp.domain.Team;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface TeamRepository extends JpaRepository<Team, Long> {
    List<Team> findByName(String name);
    Optional<Team> findById(Long id);
    List<Team> findByAdmin_Id(Long id);
    List<Team> findByStatus(String status);
}